// 导包
import Vue from 'vue'
import vueRouter from '../../node_modules/vue-router'
// 注册
Vue.use(vueRouter)
import login from '@/views/login/login.vue'
// 实例化
const router = new vueRouter({
    routes: [
        {
            path: '/login',
            component:login
        },
        {
            path: '*',
            component:login
        }
    ]
})
// 暴露
export default router
